const Service = require('egg').Service;

class UserService extends Service {
    async registry(username,password) {
      const user = await this.app.mysql.query('insert into userlist (username,password) values (?,?)',[username,password])
    }
    async selectUser(username){
        return await this.app.mysql.query('select * from userlist where username=?',[username])
    }
  }
  
module.exports = UserService;